package com.wanlian.dao;

import com.wanlian.common.PageCondition;
import com.wanlian.entity.DeviceData;
import com.wanlian.model.ResultModel;

import java.sql.Timestamp;
import java.util.List;
import java.util.Map;

public interface DeviceDataDao extends GenericDao<DeviceData> {


    ResultModel queryDeviceDataByParams(PageCondition pageCondition);

    DeviceData queryByDate(String key, Timestamp timestamp);

    void editBatch(List<DeviceData> deviceData);

    void doInsertBatch(List<DeviceData> deviceData);

    DeviceData queryByKey(String deviceKey);

    List<DeviceData> queryAllData(String date);

    Map<String,DeviceData> queryAllData(Timestamp timestamp);

}
